﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="AspNetTest._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" 
                    SortExpression="Id" />
                <asp:BoundField DataField="OrderNo" HeaderText="OrderNo" InsertVisible="False" 
                    ReadOnly="True" SortExpression="OrderNo" />
                <asp:BoundField DataField="TimeRaised" HeaderText="TimeRaised" 
                    SortExpression="TimeRaised" />
                <asp:BoundField DataField="TimeAdded" HeaderText="TimeAdded" 
                    SortExpression="TimeAdded" />
                <asp:BoundField DataField="Desc" HeaderText="Desc" SortExpression="Desc" />
                <asp:BoundField DataField="EventTypeId" HeaderText="EventTypeId" 
                    SortExpression="EventTypeId" />
                <asp:BoundField DataField="RoutePointId" HeaderText="RoutePointId" 
                    SortExpression="RoutePointId" />
                <asp:BoundField DataField="ParticipantId" HeaderText="ParticipantId" 
                    SortExpression="ParticipantId" />
            </Columns>
        </asp:GridView>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" 
            Width="575px" />
    </p>
<p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ROUTE_TIMINGConnectionString %>" 
    SelectCommand="SELECT * FROM [EventSet]"></asp:SqlDataSource>
</asp:Content>
